import React from 'react';
import './style.less';
import Search from './search';
import Cartogram from './cartogram';

export default class CityList extends React.Component {

    render() {
        const userRoles = localStorage.getItem("roles") == null ? '' : localStorage.getItem("roles");

        return (
            <div>
                <Search />
                {
                    userRoles.indexOf("汽车站运维角色") > -1 ? (<Cartogram />) : ''
                }

            </div>
        )
    }
}




